package com.koocloud.electroplatemanage.mapper;

import com.koocloud.electroplatemanage.pojo.AssignJobVo;
import com.koocloud.electroplatemanage.pojo.TypeWorkVo;
import com.koocloud.electroplatemanage.pojo.WorkTimeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @program: electroplatemanage
 * @description: 分配工作Mapper接口
 * @author: zww
 * @create: 2020-09-29 15:55
 */
@Mapper
public interface AssignJobMapper {
    //通过pk查询一条记录  delete_flag = "1"
    AssignJobVo selectByPk(String pkAssignJob);

    //通过pk查询一条记录  delete_flag = "0"
    AssignJobVo selectByCode(String pkAssignJob);
    //通过图号查询一条数据
    AssignJobVo selectByDrawNoCode(String drawNoCode);
    //查询所有记录
    List<AssignJobVo> selectAllData(AssignJobVo assignJobVo);
    //根据状态进行模糊查询 启用为1 禁用为0
    List<AssignJobVo> selectByDeleteFlag(AssignJobVo assignJobVo);
    //插入一条记录
    int insert(AssignJobVo assignJobVo);
    //批量插入记录
    int batchInsert(List<AssignJobVo> listAssignJobVo);
    //逻辑删除一条记录
    int delete(@Param("assignjobCode")String assignjobCode, @Param("deleteFlag") String deleteFlag);
    //通过pks批量逻辑删除记录
    int batchDeleteByPks(List listPks);
    //修改一条记录
    int update(AssignJobVo assignJobVo);

    //修改一条记录 delete_flag
    int updateFlag(AssignJobVo assignJobVo);
    //获取工作分配的总数
    int selectAmount();
}
